using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
using Thaire.Investment.Domains.Transaction;
namespace Thaire.Investment.Repository.Mapping
{
       
    class   DepositHeaderMap : ClassMap<DepositHeader>
    {

        public DepositHeaderMap()
            {
                Table("DEPOSIT_HEADER");
                Id(x => x.DepositHeaderID,"DEPOSIT_HEADER_ID").GeneratedBy.Native();

                Map(x => x.DepositCompanyName,"DEPOSIT_COMPANY_NAME");
 Map(x => x.DepositCompanyID,"DEPOSIT_COMPANY_ID");
 Map(x => x.MaturityStatus,"MATURITY_STATUS");
 Map(x => x.AssetClassID,"ASSET_CLASS_ID");
 Map(x => x.AccountVoucherNO,"ACCOUNT_VOUCHER_NO");
 Map(x => x.Term,"TERM");
 Map(x => x.FinancialInstrumentTypeID,"FINANCIAL_INSTRUMENT_TYPE_ID");
 Map(x => x.BankName,"BANK_NAME");
 Map(x => x.BranchName,"BRANCH_NAME");
 Map(x => x.BankCode,"BANK_CODE");
 Map(x => x.BranchCode,"BRANCH_CODE");
 Map(x => x.Symbol,"SYMBOL");
 Map(x => x.MaturityDate,"MATURITY_DATE");
 Map(x => x.InterestPaymentDate,"INTEREST_PAYMENT_DATE");
 Map(x => x.InterestRate,"INTEREST_RATE");
 Map(x => x.RiskLevel,"RISK_LEVEL");
 Map(x => x.LiquidityTierIPercent,"LIQUIDITY_TIER_I_PERCENT");
 Map(x => x.LiquidityTierIIPercent,"LIQUIDITY_TIER_II_PERCENT");
 Map(x => x.LiquidityLowLiquidityPercent,"LIQUIDITY_LOW_LIQUIDITY_PERCENT");
 Map(x => x.InvolvedPartyTypeName,"INVOLVED_PARTY_TYPE_NAME");
 Map(x => x.CreateDate,"CREATE_DATE");
 Map(x => x.CreateBY,"CREATE_BY");
 Map(x => x.ModifyDate,"MODIFY_DATE");
 Map(x => x.ModifyBY,"MODIFY_BY");
 Map(x => x.Guarantor,"GUARANTOR");
 Map(x => x.RelatedID,"RELATED_ID");
 Map(x => x.RemainUnit,"REMAIN_UNIT");

            }


    }

}